package com.sxkf.template.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sxkf.template.entity.Store;
import com.sxkf.template.vo.request.store.QueryStoreVo;

import java.math.BigDecimal;

public interface StoreService extends IService<Store>{

    IPage<Store> listNearby(Double longitude, Double latitude,Integer pageNo,Integer pageSize);

    IPage<Store> listByStore(QueryStoreVo queryStoreVo);

    boolean evaluation(String storeId, String userId, Double evaluation);

    double getAvgEvaluation(String storeId, BigDecimal soldEvaluation, Long soldCount, BigDecimal userEvaluation, Long userCount);

}
